package com.woniu.auth.mapper;

import com.woniu.auth.dto.RoleDTO;
import com.woniu.auth.entity.SysRole;

import java.util.List;

/**
* @author wangheng
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2022-12-05 18:42:51
* @Entity com.woniu.auth.entity.SysRole
*/
public interface SysRoleMapper {

    List<Integer> getRolesByUser(Integer uid);
    List<SysRole> getAllRoles();
    int deleteRoleByUser(Long uid);
    int  saveRoleByUser(RoleDTO roleDTO);
    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

}
